-
Notifications
You must be signed in to change notification settings - Fork 17
[GitHub Action] Automatically open a PR for accepted
guideline issues
#122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for scrc-coding-guidelines ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @x0rw thanks for taking this on. I haven't reviewed it in detail yet.
Noticed that you could use an existing label tho 👍
By the way, I see the build is failing -- is that intentional / expected?
I'd like to start reviewing once the build passes.
Hi @PLeVasseur. |
Also, let me know when to remove those json test issues because i picked them randomly from my repo. |
Hey @x0rw -- could you rebase? @darkwisebear recently update the spec lock file. |
34a4740
to
2d60b33
Compare
Could you help me become less ignorant? 😅 Is it possible to enable anyone to try to auto-rebase? Is it this the Automatic Rebase action or something else? (that action looks kinda nice...) |
Hey @PLeVasseur 😄 |
@PLeVasseur, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @x0rw -- sorry for the long delay 😅 I'm back from my "workation" in Japan and jumping back into reviews.
Bottom-line: I really like the concept and how you executed it.
Summary of feedback: As you can see from some of the comments I left, there's some refactoring that needs to be done to allow for easier maintenance in the future between both generate-guideline-templates.py
and auto-pr-helper.py
. Hope the rationale makes sense! 🙏
36406c5
to
b5c4829
Compare
About testing the auto-pr script, I went with snapshot testing approach, i compare the generated .rst template from issue json with the expected .rst result, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking on the refactoring @x0rw! I've suggested some bits here that I think could help. Could you take a look?
Hi @x0rw -- could you rebase? I think this looks solid enough to merge then. 👍 |
test auto-pr template 2 test auto-pr template 3 test auto-pr template 4 test auto-pr template 5 test auto-pr template 6 test auto-pr template 7 test auto-pr template 8 test auto-pr template 9
Co-authored-by: Pete LeVasseur <[email protected]>
add snapshot testing and their runner renamed generate-guideline-templates.py to generate_guideline_templates.py general refactor
Co-authored-by: Pete LeVasseur <[email protected]>
This workflow only triggers when the auto-pr script or the snapshot test directory changes
Co-authored-by: Pete LeVasseur <[email protected]>
Co-authored-by: Pete LeVasseur <[email protected]>
Co-authored-by: Pete LeVasseur <[email protected]>
Hey @PLeVasseur, I'm testing ways to convert markdown directly into .rst format so that issue #156 can be transformed, with links, tables, highlights, bullet points without compromising readability in the issue form. |
c1ebb63
to
9641978
Compare
Hi @PLeVasseur, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey 👋.
This PR adds a workflow that automatically opens a PR for the accepted guidelines marked by 'accepted' label,
The script extracts the marked issue and parses it into a proper guideline rst file and appends this content into the appropriate chapter(eg. if the chapter is
concurrency
it will append the gl tosrc/coding-guidelines/concurreny.rst
, note: the chapters title in here should be directly mapped to the names in coding-guidelines/ directory).Tasks:
issue
from stdin and turn it into our guidelines' .rst formatgithub.event.issue
variableHow to test? :
Current Limitations
Markdown headings (e.g.,
##
) cannot be used inside content blocks in the issue template that are converted to reStructuredText (.rst
) directives.Use bold text or other alternatives for emphasis or headings within these blocks.
Why?